#ifndef __UART2_H_
#define __UART2_H_

#define	TX2_Lenth	64
#define	RX2_Lenth	64

void UART2_Init(void);		//115200bps@11.0592MHz
void u2_SendData(char *dat, unsigned char len);
void u2_SendChar(char dat);
void u2_SendString(char *s);

extern bit	  B_RX2_OK;		//接收块完成
extern char	  RX2_TimeOut;		//接收超时
extern char   RX2_Cnt;			//接收字节计数
extern xdata char TX2_Buffer[TX2_Lenth];	//发送缓冲
extern xdata char RX2_Buffer[RX2_Lenth];	//接收缓冲



#endif
